An array in VectorScript is a collection of data values referenced by a single identifier. Arrays allow large amounts of data to be stored and manipulated during script execution.
The data values contained within an array are stored in a contiguous set of memory locations, and can be accessed either randomly or in sequential order. In VectorScript, you can access this data by means of an array ind
ex. An array index is an
INTEGER value corresponding to a specific storage location within the array. VectorScript arrays are indexed (that is, an individual data value is retrieved from the array) by enclosing the index value in square brackets after the array name. For example, if
my_data is an array, and
i is an
INTEGER variable, then
VectorScript provides support for two types of arrays: static arrays (ARRAY), and dynamic arrays (
DYNARRAY). This section explains the syntax and conventions for using arrays in your scripts.